﻿namespace ClassyBlog.Infrastructure
{
    using System;
    using System.Diagnostics;

    public static class Clock
    {
        public static readonly DateTime MinimumDate =
            new DateTime(2000, 1, 1, 0, 0, 0);

        public static readonly DateTime MaximumDate =
            new DateTime(DateTime.UtcNow.Date.Year + 100, 12, 31, 23, 59, 59);

        private static Func<DateTime> utcNow = () => DateTime.UtcNow;

        public static Func<DateTime> UtcNow
        {
            [DebuggerStepThrough]
            get { return utcNow; }

            [DebuggerStepThrough]
            set { utcNow = value; }
        }
    }
}